#!/bin/sh

if test $# -ne 1
then
	echo "usage : $0 <directory>"
	exit 2
fi

if test -e "$1/logFileAllStation.xml" 
then 	rm -f "$1/logFileAllStation.xml"
fi

if test -d "$1/post_list/" 
then 	rm -R -f "$1/post_list/"
fi

cd "$1" && \
mkdir "post_list/" && \
(ls -R -1 | grep logFileStation.\.xml) > "post_list/post_list.txt"
